package myTest;

import groovy.lang.GroovyClassLoader;

public class GroovyTest {

    private static final GroovyClassLoader groovyClassLoader = new GroovyClassLoader();
    public static void main(String[] args) {
        String sCode = "def choose( servletRequest){\n" +
                "\tdef node = [:];\n" +
                "\tnode.group = \"ss\";\n" +
                "\tnode.version = \"sxxs\";\n" +
                "\treturn node;\n" +
                "}";
        Class<?> clazz = groovyClassLoader.parseClass(sCode);
    }
}
